package org.example.text01;

public class Circle extends Shape{
    private double r;
    public Circle() {
    }

    public Circle(double area, double girth) {
        super(area, girth);
    }

    public Circle(double r) {

        this.r = r;
        this.setGirth(r * 2 * 3.14);
        this.setArea(r*r*2*3.14);
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    @Override
    public String toString() {
        return "Circle{" +
                "r=" + r +
                '}';
    }
}
